import {defineStore} from 'pinia'
import {ref} from "vue";
import {reqGetUserInfo} from "@/api/modules/account.js";

export const useUserStore = defineStore("user", () => {
    const userInfo = ref()
    const getUserInfo = async () => {
        userInfo.value = await reqGetUserInfo()
    }
    return {
        userInfo,
        getUserInfo
    }
})
